<div class="modal-header">
    <h3 class="modal-title">{{vm.formTitle || '新建考试'}}</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal" name="userForm">

        <div class="form-group">
            <label for="" class="col-sm-3 control-label">名称</label>
            <div class="col-sm-8">
                <input type="test" ng-model="vm.exam.name" class="form-control" name="name" placeholder="名称" required="required">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-3 control-label">日期</label>
            <div class="col-sm-8">
                <input type="month" ng-model="vm.exam.date" class="form-control" name="examNumber" placeholder="准考证号" required="required">
            </div>
        </div>
        <div class="wrapper text-center" >试题内容</div>
        <div class="form-group" ng-repeat="q in vm.exam.questions">
            <label for="" class="col-sm-3 control-label">{{q.subject}}</label>
            <div class="col-sm-8">
                <textarea class="form-control" ng-model="q.content" ></textarea>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-disabled="userForm.$invalid" ng-click="vm.ok()">提交</button>
    <button class="btn btn-default" type="button" ng-click="vm.cancel()">取消</button>
</div>